{__NOLAYOUT__}
<layout name="no_nav" />
<style type="text/css">
	body {
		position: relative;
		background-size: cover;
		overflow: hidden;
		padding-bottom: 0;
	}
	.gh-gl {
		position: absolute;
		top: 50%;
		left: 50%;
		width: 80%;
		text-align: center;
		-webkit-transform: translate(-50%, -50%);
		-ms-transform: translate(-50%, -50%);
		transform: translate(-50%, -50%);
	}
	.gh-gl-item {
		display: block;
		margin-bottom: .2em;
		padding-top: .5em;
		padding-bottom: .5em;
		background-color: rgba(255, 255, 255, .8);
	}
	.gh-tip {
		position: absolute;
		top: 0;
		left: 0;
	}
	.ellipsis {
		padding-top: 1px;
	}
	.swipe-container {
		overflow: hidden;
		visibility: hidden;
		position: relative;
		width: 100%;
	}
	.swipe-images {
		overflow: hidden;
		position: relative;
	}
	.swipe-images li {
		float: left;
		width: 100%;
		position: relative;
		text-align: center;
		background-repeat: no-repeat;
		background-size: 100% 100%;
		background-color: #f5f5f5;
	}
	.swipe-bullets {
		position: absolute;
		z-index: 99;
		left: 0;
		right: 0;
		bottom: 0;
		text-align: center;
	}
	.swipe-bullets i {
		font-style: normal;
		font-size: 0;
		background-color: #ddd;
		display: inline-block;
		width: 8px;
		height: 8px;
		border-radius: 5px;
		margin: 2px;
	}
	.swipe-bullets i.active {
		background-color: #fff;
	}
	.from-bar {
		position: inherit;
	}
	.goods-category {
		margin: 2%;
		padding: 0.8em;
		width: 96%;
		background: #fff;
		box-sizing: border-box;
	}
	.goods-category li {
		box-sizing: border-box;
		float: left;
		width: 25%;
		text-align: center;
		font-size: .8em;
	}
	.goods-category li img {
		width: 3em;
		height: 3em;
		border-radius: 50%;
	}
	.goods-category li p {
		height: 24px;
		line-height: 24px;
		margin-top: 8px;
	}
	.goods-lists {
		margin: 0 2%;
	}
	.goods-lists li {
		padding: 0.5em;
		background: #ffffff;
		margin-bottom: 0.8em;
		text-align: center;
		box-sizing: border-box;
		width: 49%;
		float: left;
	}
	.goods-lists li:nth-child(even) {
		margin-left: 2%;
	}
	.goods-lists li:nth-child(odd){
	    clear: left;
	}
	.goods-lists li .goods-title {
		height: 1.8em;
		line-height: 1.8em;
		overflow: hidden;
		font-size: 1em;
	}
	.goods-lists li img {
		border: 0;
	}
	.goods-lists .goods-price {
		float: left;
		font-size: .8em;
		display: inline-block;
		padding: 0 3px;
		border-radius: 3px;
	}
	.goods-lists del{
	    color: #999;
        font-size: 90%;
        display: inline-block;
	}
</style>

<!-- TOPBAR -->
<header class="top-bar flex-row">
  <span class="row-item row-item-auto top-bar-back" onclick="window.history.back()">返回</span>
  <h3 class="row-item top-bar-name">代理进货</h3>
  <a class="row-item row-item-auto top-bar-menu" href="{$config.url}">主页</a>
</header>

<div class="swipe-container" id="swipeSlide">
	<ul class="swipe-images">
		<volist name="goodsLists" id="v">
			<li>
				<img src="{$v['images'][0]}">
			</li>
		</volist>
	</ul>
	<p class="swipe-bullets">
		<foreach name="goodsLists" item="v">
			<i <eq name="key" value="0">class="active"</eq>></i>
		</foreach>
	</p>
</div>
<script src="__PUBLIC__/Static/js/swipe.min.js" type="text/javascript" charset="utf-8"></script>
<script>
	$(function() {
		var slide = $("#swipeSlide");
		var bullets = $(".swipe-bullets i");
		var len = bullets.size();
		var swipe = new Swipe(slide.get(0), {
			auto: 3000,
			callback: function(index) {
				for (var i = 0; i < len; i++) {
					bullets.eq(i).removeClass('active');
				}
				bullets.eq(index).addClass('active');
			}
		});
	});
</script>

<div class="flex-row" style="padding-top: 10px;">
	<ul class="goods-lists">
		<volist name="packageList" id="v">
			<li>
				<a href="{$v.url}">
					<img src="{$v['image_vertical']?$v['image_vertical']:$v['image']}" />
					<p class="goods-title">{$v.name}</p>
					<p><span class="goods-price">微信价:￥{$v.price}</span></p>
				</a>
			</li>
		</volist>
	</ul>
</div>